#!/bin/bash

set -e
set -x

# cp jenkins.repo /etc/yum.repo.d/
# yum -y install jenkins-2.479.1 --downloadonly --downloaddir=.
bypy download jenkins-2.479.1-1.1.noarch.rpm
yum -y --disablerepo='*' localinstall jenkins-2.479.1-1.1.noarch.rpm

# 推荐插件
# 
# 权限管理插件：Role-based Authorization Strategy
# 
# pipeline运行docker容器插件：Docker Pipeline
# 
# Webhook插件：Generic Webhook Trigger

set +x
set +e